<%--
  Created by IntelliJ IDEA.
  User: LiuYou
  Date: 2020/10/19
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>登录页面</title>
    <!-- Bootstrap -->
    <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css" rel="stylesheet">
</head>
<body class="bg-primary">
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div style="height: 200px;"></div>
            <h1 class=" col-md-offset-4">登录系统</h1>
            <div style="height: 10px;"></div>
            <form action="${pageContext.request.contextPath}/user/login" method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="account" class="col-md-3 control-label">账号：</label>
                    <div class="col-md-8"><input id="account" type="text" name="userAccount" class="form-control"
                                                 placeholder="请输入账号！"/></div>
                </div>
                <div class="form-group">
                    <label for="pwd" class="col-md-3 control-label"> 密码：</label>
                    <div class="col-md-8"><input id="pwd" type="password" name="userPassword" class="form-control"
                                                 placeholder="请输入密码！"/></div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 col-md-offset-4"><input type="submit" value="登录" class="btn btn-default"/>
                    </div>
                </div>
            </form>

            <%--当if中的test返回true的时候，提示框里的内容才会显示出来，否则提示框就不会显示出来--%>
            <c:if test="${not empty msg}">
                <div class="col-md-12">
                    <div class="alert alert-warning alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert"><span>&times;</span></button>
                        <strong> ${msg}</strong>
                    </div>
                </div>
            </c:if>


        </div>
    </div>

</div>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="${pageContext.request.contextPath}/bootstrap/js/jquery-1.11.2.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.js"></script>
</body>
</html>


<%--
  Created by IntelliJ IDEA.
  User: LiuYou
  Date: 2020/10/19
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>登录</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/login" method="post">
    账号：<input type="text" name="userAccount"/><br/>
    密码：<input type="password" name="userPassword"/><br/>
    <input type="submit" value="登录"/>
</form>
${msg}
</body>
</html>--%>


<%--
  Created by IntelliJ IDEA.
  User: LiuYou
  Date: 2020/10/19
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>登录</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/login" method="post">
    账号：<input type="text" name="userAccount"/><br/>
    密码：<input type="password" name="userPassword"/><br/>
    <input type="submit" value="登录"/>
</form>
</body>
</html>--%>


<%--
<html>
<head>
    <title>登录</title>
</head>
<body>
<div class="container">
    &lt;%&ndash;controller包下的UserController类对此客户端的请求进行处理&ndash;%&gt;
    <form action="${pageContext.request.contextPath}/user/login" method="post" class="form-horizontal">
        <div class="form-group">
            <label for="account" class="col-md-3 control-label">账号：</label>
            <div class="col-md-8"><input id="account" type="text" name="userAccount" class="form-control"
                                         placeholder="请输入账号！"/></div>
        </div>
        <div class="form-group">
            <label for="pwd" class="col-md-3 control-label"> 密码：</label>
            <div class="col-md-8"><input id="pwd" type="password" name="userPassword" class="form-control"
                                         placeholder="请输入密码！"/></div>
        </div>
        <div class="form-group">
            <div class="col-md-3 col-md-offset-4"><input type="submit" value="登录" class="btn btn-default"/>
            </div>
        </div>
    </form>
</div>
</body>
</html>
--%>
